<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- 病案查询页面 -->
<div class="easyui-tabs" style="width:auto;height:100%;" id="show-checkedInfoTabs">  
		      
    <div title="查询条件" style="overflow:auto;border-right:1px solid #dad9d9">   
	    <div>
	    	<p class="headtags" style="border-top:1px solid #dad9d9;">查询条件模板</p>    
	    	<div class="paddingTBL">
		    	<input id="query-template">	 
		    	<span class="paddingL"></span>
		    	<a class="easyui-linkbutton" onclick="addConditionTemp()">新增</a>
		       	<span class="paddingbtn"></span>
		       	<a class="easyui-linkbutton" onclick="editConditionTemp()">修改</a> 
		       	<span class="paddingbtn"></span>
		       	<a class="easyui-linkbutton" onclick="deleteConditionTemp()">删除</a>
	       	</div>
	    </div> 
	    
	    <div>
	        <p class="headtags" style="border-top:1px solid #dad9d9;">查询条件</p>   
			<div class="paddingTBL">
				 <form id="conditionForm">
				   <div class="paddingB"> 
				    	<input id="date-type" name="FRQLX">
				    	<span class="paddingbtn"></span>
				    	<input id="start-date" name="FQSRQ" class="easyui-datebox" data-options="width:115,height:24" />
				    	<span>&nbsp;至&nbsp;</span>
				    	<input id="end-date" name="FJSRQ" class="easyui-datebox" data-options="width:115,height:24" />
				    	
				    	<span class="paddingL30"></span>
				    	
				    	<span class="labelWid5">性别&nbsp;<input id="condition-sex" name="FSEXLX"></span>
				    	<span class="paddingbtn"></span>
				    	
				    	<span>年龄&nbsp;</span> 
				    	<input id="condition-startAge" name="FQSAGE" class="easyui-textbox" data-options="width:50,height:24" />
				    	<span>&nbsp;至&nbsp;</span>
    					<input id="condition-endAge" name="FJSAGE" class="easyui-textbox" data-options="width:50,height:24" />
    					<input id="condition-ageType" name="FAGELX">
				    </div>
				    <div class="paddingB">
				    	<span class="labelWid5" style="text-align:right">病案号</span>
				    	<span class="paddingbtn"></span>
				    	<input id="condition-fprn" name="FPRNTEXT" class="easyui-textbox" data-options="width:260,height:24" />
				    	
				    	<span class="paddingL30"></span>
				    	
				    	<span class="labelWid5" style="text-align:right">出院科室</span>
				    	<span class="paddingbtn"></span>
				    	<input id="condition-fcydept">
				    </div>
				    
				    <div class="paddingB">
				    	<span class="labelWid5" style="text-align:right">姓&nbsp;名</span>
				    	<span class="paddingbtn"></span>
				    	<input id="condition-fname" name="FNAMETEXT" class="easyui-textbox" data-options="width:260,height:24" />
				    	
				    	<span class="paddingL30"></span>
				    	
				    	<!-- 医生或护士类型 -->
				    	<span class="labelWid5"><input id="condition-docType" name="FDOCLX"></span>
				    	<span class="paddingbtn"></span>
				    	<!-- 医生类型下所有所属医生护士 -->
				    	<input id="condition-docName" class="inputWH" name="FDOCNAME">
				    </div>
				    
				    <div class="paddingB">
				    	<!--诊断编码或名称  -->
				    	<span class="labelWid5"><input id="condition-diagnosType" name="FZDBMMC"></span>
				    	<span class="paddingbtn"></span>
				   		<!-- 诊断编码或名称值 -->
				    	<input id="condition-diagnosText" class="easyui-textbox inputWH" name="FZDBMMCVAL" data-options="width:260,height:24">
				    	
				    	<span class="paddingL30"></span>
				    	
				    	<span class="labelWid5" style="text-align:right">诊断类型</span>
				    	<span class="paddingbtn"></span>
				    	<input id="condition-diagnosName" name="FZDLX">
				    </div>
				    
				    <div class="paddingB">
				   		<!--手术编码或名称  -->
				    	<span class="labelWid5"><input id="condition-operationType" name="FSSBMMC"></span>
				  		<span class="paddingbtn"></span>
				  		<!-- 手术编码或名称值 -->
				    	<input id="condition-operationText" class="easyui-textbox inputWH" name="FSSBMMCVAL" data-options="width:260,height:24">
				    	
				    	<span class="paddingL30"></span>
				    	
				    	<span class="labelWid5" style="text-align:right">手术类型</span>
				    	<span class="paddingbtn"></span>
				    	<input id="condition-operationName" name="FSSLX">
				    </div>
				    
				    <div>多个逗号分隔，模糊检索%号表示！</div>
			    </form>
		     </div>
		     
		     <div class="paddingB"  style="width:700px;text-align:center">
		    	<a class="easyui-linkbutton" onclick="BatchBrowseApply()">批量浏览申请</a>
		    	<span class="paddingL30"></span>
		       	<a class="easyui-linkbutton" onclick="SubmitConditionCheck()">查询</a>
		     </div> 
       </div>  
	</div>
    
    <div title="数据列表" style="border-right:1px solid #dad9d9;"> 
    	 <div id="toolbar-ConditionCheckData"> 
    	     <div class="paddingTBL">
    	     	<input type="checkbox" onchange="isFilterChecked()" id="medical_record_inquery_filter">
	       	 	<a class="easyui-linkbutton" onclick="filterSetting()">过滤设置</a>
	       	 	<span class="paddingL"></span>
	       	 	<span>显示模板&nbsp;</span> 
	       	 	<input id="show-fieldsTemp">
	       	 </div>
       	 </div> 
	     <table id="data-ConditionCheck"></table>
	     
	    <!-- 批量申请dialog -->
		<div id="batchApply-dialog" class="easyui-dialog" data-options="closed:true" style="width:480px;height:300px;">
				<form id="batch-applyForm" method="post">
				  <div class="paddingTBL">
						<p class="paddingB">
						    <label>申请条件&nbsp;</label>
							<span id="apply-conditionText"></span>
						</p>
						
						<p class="paddingB">
							<label>申请目的&nbsp;</label>
							<input id="bApply-purpose" name="bApplyPurpose"/>
							
							<span class="paddingL30"></span>
							
							<label>浏览天数&nbsp;</label>
							<input id="bBrowse-days" name="bBrowseDays" class="easyui-textbox" data-options="width:100,height:24"/>
						</p>
						
						<p class="paddingB">
							<label>申请描述&nbsp;</label>
							<span style="vertical-align: middle;">
							  <textarea class="" id="" name="bApplyRemark" style="resize:none;width:360px;height:50px;"></textarea>
							</span>
						</p>
				  </div>
			    </form>
		</div>

		<!-- 单个申请dialog -->
		<div id="singleApply-dialog" class="easyui-dialog" data-options="closed:true" style="width:490px;">
				<form id="single-applyForm" method="post">
				   <div class="paddingTBL">
						<span class="paddingB">
						    <span style="width:180px;">
							    <label>病案号:&nbsp;</label>
								<span id="apply-fprn" class="shootFontBold"></span>
							</span>  
							
							<span style="width:120px;">
								<label>姓名:&nbsp;</label>
								<span id="apply-fname" class="shootFontBold"></span>
							</span> 
							
							<span style="width:150px;">
								<label>出院日期:&nbsp;</label>
								<span id="apply-fcydate" class="shootFontBold"></span>
							</span>
						</span>
						<span class="paddingB">
							<label>申请目的&nbsp;</label>
							<input id="sApply-purpose" name="sApplyPurpose"/>
							
							<span class="paddingL30"></span> 
							
							<label>浏览天数&nbsp;</label>
							<input id="sBrowse-days" name="sBrowseDays" class="easyui-textbox" data-options="width:100,height:24" />
						</span>
						<span class="paddingB">
							<label>申请描述&nbsp;</label>
							<span style="vertical-align:middle;">
								<textarea name="sApplyRemark" style="resize:none;width:360px;height:50px;"></textarea>
							</span>
						</span> 
					</div>
			    </form>
		</div>

		<!-- 过滤设置 -->
		<div id="medical_record_inquery_filter_dialog" class="easyui-dialog" data-options="closed:true" style="width:500px;height: 460px;">
				<div id="medical_record_inquery_filter_layout"  class="easyui-layout" data-options="fit:true">
					<div data-options="region:'north'" style="height:50px;">
						 <span class="paddingTBL">
							&nbsp;结果列&nbsp;<input type="text" onkeyup="loadFilterSettingFiledTableFilter()" id="medical_record_inquery_filter_txt" class="shootFontBold" style="margin-top: 2px;">
						 </span>
					</div>
					<div data-options="region:'west',split:true,collapsible:false,width:'50%'" style="padding:1px;"> 
						<table id="medical_record_inquery_filter_field_datagrid"></table>
					</div>
					<div data-options="region:'center',split:true,collapsible:false,width:'50%'">
						<table id="medical_record_inquery_filter_field_value_datagrid"></table>
					</div>
				</div>
		</div>
    </div> 
</div> 

<script type="text/javascript" src="<%=request.getContextPath()%>/js/MedicalCheckManage/MedicalRecordInquiry.js"></script>